base_url = 'http://nuvietclub.com';
function confirm_delete()
{
	var check = confirm('Are you sure to delete?');
	if( check )
		return true;
	else
		return false;
};

function check_password_match( pass, repass )
{
	if( pass != '' && repass != '' && pass != repass )
	{
		alert("Password and Re-password doesn't match");
		return false;
	}
        return true;
}

function check_password_length( pass, repass, currentpassword )
{
	if( pass != '' && repass != '' && pass == repass )
	{
		if( pass.length < 6 || repass.length < 6 )
		{
			alert("Password must be more than 6");
			return false;
		}
	}
	return true;
}

function check_input_validate( input )
{
	var data = $('#'+input).val();
	if( $.trim(data) == '' ){
		alert('Xin vui lòng nhập dữ liệu!');
		$( '#'+input ).css('border','1px solid red').focus();
		return false;
	}
	return true;
};

function confirm_enter()
{
        var check=confirm("Bạn đã chắc chắn ?");
        if (check==true)
        {
        return true;
        }
        else
        {
        return false;
        }
};

function confirm_copy()
{
        var check=confirm("Bạn muốn copy ?");
        if (check==true)
        {
        return true;
        }
        else
        {
        return false;
        }
};

function pah_jumpMenu_record(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}